package com.chuan.it_market.service.impl;

import com.chuan.it_market.dao.BuyerDao;
import com.chuan.it_market.pojo.entity.Buyer;
import com.chuan.it_market.service.BuyerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BuyerServiceImpl implements BuyerService {
    @Resource
    BuyerDao buyerDao;
    @Override
    public Buyer selectBuyerByPrimaryKey(Integer bno) {
        return buyerDao.selectByPrimaryKey(bno);
    }

    @Override
    public Buyer selectBuyerByphone(String phone) {
        return buyerDao.selectBuyerByPhone(phone);
    }

    @Override
    public int update(Buyer buyer1) {
        return buyerDao.updateByPrimaryKeySelective(buyer1);
    }
}
